package Zuoye.zuoye5;

public  abstract class Money {
    private String Id;
    private String name;
    private int phone;
    private double money;
    public abstract void payMoney(double paymoney);


    public Money() {
    }

    public Money(String id, String name, int phone, double money) {
        Id = id;
        this.name = name;
        this.phone = phone;
        this.money = money;
    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Money{" +
                "Id='" + Id + '\'' +
                ", name='" + name + '\'' +
                ", phone=" + phone +
                ", money=" + money +
                '}';
    }
}
